/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="BRASUBSTANCIAS")
public class BraSubstanciasProteu implements Serializable{

    @Id
    @Column(name="BRASUBCODIGO")
    private Integer braSubCodigo;
    @Column(name="BRASUBDESCRICAO")
    private String braSubDescricao;

    public Integer getBraSubCodigo() {
        return braSubCodigo;
    }

    public void setBraSubCodigo(Integer braSubCodigo) {
        this.braSubCodigo = braSubCodigo;
    }

    public String getBraSubDescricao() {
        return braSubDescricao;
    }

    public void setBraSubDescricao(String braSubDescricao) {
        this.braSubDescricao = braSubDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final BraSubstanciasProteu other = (BraSubstanciasProteu) obj;
        if (this.braSubCodigo != other.braSubCodigo && (this.braSubCodigo == null || !this.braSubCodigo.equals(other.braSubCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 83 * hash + (this.braSubCodigo != null ? this.braSubCodigo.hashCode() : 0);
        return hash;
    }


}
